package com.hospital.warehouse.drugdicts.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hospital.centerone.entity.Area;
import com.hospital.warehouse.supplier.entity.Supplier;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr. YR
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("drugdicts")
public class Drugdicts extends Model<Drugdicts> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "drugDict_id", type = IdType.AUTO)
	private Integer drugDict_id;

	@TableField("drugDict_name")
	private String drugDict_name;

	@TableField("price")
	private BigDecimal price;

	@TableField("specification")
	private String specification;

	@TableField("unit_id")
	private Integer unit_id;

	@TableField("drugtype_id")
	private Integer drugtype_id;

	@TableField("supplier_id")
	private Integer supplier_id;
	
	@TableField(exist = false)
	private Supplier supplier;

	@TableField("area_id")
	private Integer area_id;
	
	@TableField(exist = false)
	private Area area;

	@TableField("flag")
	private Integer flag;

	@Override
	protected Serializable pkVal() {
		return this.drugDict_id;
	}

}
